package util

import (
	"math/rand"
	"time"
)

/*
工具包
*/
//RandName 随机名称函数
func RandName(n int) string {
	names := []byte("asdfghjklzxcvbnmqwertyuiopZXDFSDFEWTGFGC")
	result := make([]byte, n)
	for n := range result {
		rand.Seed(time.Now().UnixNano())
		result[n] = names[rand.Intn(len(names))]
	}
	return string(result)
}
